package com.rran.study.chat.server.core.repository;

import io.netty.channel.ChannelHandlerContext;
import io.netty.handler.codec.http.websocketx.WebSocketServerHandshaker;

/**
 * @author yy
 * @Type ChannelFactory.java
 * @Desc
 * @date 2020/8/6 19:35
 */
public class ChannelFactory {

    public static WebSocketServerHandshaker getWebSocketServerHandshaker(String key){
        return ChannelResponsitory.getWebSocketServerHandshaker(key);
    }

    public static ChannelHandlerContext getChannelHandlerContext(String beanId){

        return ChannelResponsitory.getChannel(beanId);
    }

}
